@import '_reset.less';

body, html {
    height: 100%;
}

.wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    .header {
        width: 100%;
        height: 1rem;
        line-height: 1rem;
        padding: 0 .4rem;
        background: #40abdf;
        box-sizing: border-box;
        overflow: hidden;
        h2 {
            color: #fff;
            font-size: .4rem;
        }
    }
    .content {
        width: 100%;
        height: 100%;
        overflow: hidden;
        .wrap-box {
            width: 100%;
            height: 100%;
            overflow: hidden;
            &.upload-box {
                .fix {
                    width: 100%;
                    margin: 0 auto;
                }
                .ico {
                    width: 2rem;
                    height: auto;
                    margin: 0 auto;
                    display: block;
                }
                .panel {
                    list-style: none;
                    text-align: center;
                    li {
                        margin: 0 .05rem;
                        display: inline-block;
                        a {
                            width: 2rem;
                            height: .85rem;
                            line-height: .85rem;
                            background: #78cd4f;
                            color: #fff;
                            text-align: center;
                            display: block;
                            text-decoration: none;
                            font-size: .3rem;
                            &#choiceModelBtn {
                                background: #c6c6c6;
                            }
                            &:hover {
                                opacity: .7;
                            }
                            &:active {
                                opacity: .9;
                            }
                        }
                    }
                }
                #uploadElement, #tmpPIC {
                    display: none;
                }
            }
            &.model-box, &.glass-box {
                list-style: none;
                .fix {
                    width: 94%;
                    height: 100%;
                    margin: 0 auto;
                }
                #modelList, #glassList {
                    width: 100%;
                    height: 95%;
                    overflow: auto;
                    li {
                        width: 2rem;
                        height: 2rem;
                        margin: 0 .17rem 0 .17rem;
                        border: 1px solid #eee;
                        padding: .1rem;
                        display: inline-block;
                        box-sizing: border-box;
                        &:hover {
                            opacity: .7;
                        }
                        a {
                            width: 100%;
                            height: 100%;
                            background: no-repeat center;
                            background-size: 100%;
                            display: block;
                        }
                    }
                }
            }
            &.view-box {
                .fix {
                    width: 100%;
                    height: 100%;
                    position: relative;
                }
                #editZone {
                    width: 100%;
                    height: 100%;
                    background: no-repeat center;
                    background-size: 100%;
                    position: absolute;
                    z-index: 1;
                    #glassElement {
                        width: 3rem;
                        height: auto;
                        top: 30%;
                        left: 30%;
                        background: transparent;
                        position: absolute;
                        z-index: 2;
                    }
                }
                .glass-panel {
                    right: .3rem;
                    bottom: .1rem;
                    list-style: none;
                    position: absolute;
                    z-index: 9;
                    li {
                        display: inline-block;
                        a {
                            width: .9rem;
                            height: .9rem;
                            margin: 0 0 0 -.1rem;
                            background: #fff no-repeat;
                            background-size: 100%;
                            border: 1px solid #ddd;
                            border-radius: 5px;
                            display: block;
                            &#zoom {
                                background-image: url('../../img/zoom-icon.png');
                            }
                            &#zoomOut {
                                background-image: url('../../img/zoom-out-icon.png');
                            }
                        }
                    }
                }
            }
        }
    }
    .footer {
        width: 100%;
        height: 1.2rem;
        background: #fff;
        border-top: 1px solid #eee;
        overflow: hidden;
        ul {
            width: 100%;
            height: 100%;
            text-align: center;
            overflow: hidden;
            li {
                height: 100%;
                margin: 0 .1rem;
                display: inline-block;
                &.curr {
                    a {
                        color: #40abdf;
                        i {
                            &.ico-upload {
                                background-image: url('../../img/ico_upload_curr_m.png');
                            }
                            &.ico-model {
                                background-image: url('../../img/ico_model_curr_m.png');
                            }
                            &.ico-glass {
                                background-image: url('../../img/ico_glass_curr_m.png');
                            }
                            &.ico-preview {
                                background-image: url('../../img/ico_preview_curr_m.png');
                            }
                        }
                    }
                }
                a {
                    overflow: hidden;
                    i {
                        width: .55rem;
                        height: .55rem;
                        margin: .14rem auto .05rem auto;
                        background: no-repeat center #fff;
                        background-size: 100%;
                        display: block;
                        &.ico-upload {
                            background-image: url('../../img/ico_upload_m.png');
                        }
                        &.ico-model {
                            background-image: url('../../img/ico_model_m.png');
                        }
                        &.ico-glass {
                            background-image: url('../../img/ico_glass_m.png');
                        }
                        &.ico-preview {
                            background-image: url('../../img/ico_preview_m.png');
                        }
                    }
                    width: 1.2rem;
                    height: 100%;
                    color: #666;
                    display: block;
                }
            }
        }
    }
}